package com.asset.admin.system.tradingtype.form;

/**
 * <p>
 * 查询条件form
 * </p>
 *
 * @author 牧之
 * @date 2024/2/19 17:21
 */
public class TradingTypeQueryForm {

    private Integer pageNum;
    private Integer pageSize;
    private Integer currentNum;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCurrentNum() {
        return currentNum;
    }

    public void setCurrentNum(Integer currentNum) {
        this.currentNum = currentNum;
    }

    public void setCurrentNum() {
        if (pageNum != null && pageSize != null) {
            currentNum =  (pageNum - 1) * pageSize;
        }
    }

    //交易类型id
    private Long id;

    //交易类型名称
    private String typeName;

    //父类型
    private Long pId;

    //交易方向code
    private String tradingDirectionTypeCode;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public String getTradingDirectionTypeCode() {
        return tradingDirectionTypeCode;
    }

    public void setTradingDirectionTypeCode(String tradingDirectionTypeCode) {
        this.tradingDirectionTypeCode = tradingDirectionTypeCode;
    }
}
